<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <!-- 指定网页的兼容性模式设置,IE使用最新的引擎渲染网页，chrome=1则可以激活Chrome Frame -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge, Chrome=1" />
    <title>document</title>
  </head>

  <body>
    <script>
      var debug = { hello: 'world' }
      var blob = new Blob([JSON.stringify(debug, null, 2)], { type: 'application/json' })
      console.log(blob)
      var reader = new FileReader()
      reader.addEventListener('loadend', function() {
        var res = reader.result
        console.log(res)
      })
      reader.readAsText(blob)
    </script>
  </body>
</html>
